<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>橙子教师之友平台</title>

    <link href="./h5/css/bootstrap.min.css" rel="stylesheet">
    <link href="./h5/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="./h5/css/animate.min.css" rel="stylesheet">
    <link href="./h5/css/style.min.css" rel="stylesheet">
    <link href="./h5/css/login.min.css" rel="stylesheet">
    <script type="text/javascript">
        if (window.top !== window.self) {
            window.top.location = window.location
        }
    </script>
</head>
<body class="platform">
<div class="signinpanel">
    <div class="row">
        <div class="col-sm-10">
            <div class="signin-info">
                <div class="logopanel m-b">
                    <h1>教师班级管理系统</h1>
                </div>
                <div class="m-b"></div>
                <h4>欢迎使用 <strong>橙子教师之友平台</strong></h4>
                <ul class="m-b">
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 全域</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 智慧</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 趣味</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 服务</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 未来</li>
                </ul>
            </div>
        </div>
        <div class="col-sm-2">
            <form method="post" id="login_form" action="toLogin">
                <h4 class="no-margins">登录：</h4>
                <input type="text" name="username" id="username" class="form-control uname" placeholder="用户名/手机号"/>
                <input type="password" name="password" id="password" class="form-control pword m-b" placeholder="密码"/>
                <span style="color: #bd362f"><p th:utext="${msg}"/></span>


                <button class="btn btn-success btn-block">登录</button>
            </form>
        </div>
    </div>
    <div class="signup-footer">
        <div class="pull-left">
        </div>
    </div>
</div>
<script src="./h5/js/jquery.min.js?v=2.1.4"></script>
<script src="./h5/js/bootstrap.min.js?v=3.3.6"></script>
<script type="text/javascript">
    $(function () {
        $("#username").focus();
        document.onkeydown = function (e) {
            var ev = document.all ? window.event : e;
            if (ev.keyCode == 13) {
                loginsubmit();
            }
        }
    });
    function loginsubmit() {
        var username = $("#username").val();
        var pwd = $("#password").val();
        if (username == null || username == "") {
            return false;
        } else if (pwd == null || pwd == "") {
            return false;
        } else {
            $("#login_form").submit();
        }
    }
</script>
</body>
</html>